<script setup lang="ts">
    import TsSample from './components/ts-sample/index.vue'

    const onUpdate = (data:any) => {
        console.log(data)
    }

    // function test(params:(string | boolean)) {
    //     console.log(typeof(params), params)
    // }
    const test = (params:(string | boolean)) => {
        console.log(typeof(params), params)
    }
    test(true)
</script>

<template>
    <TsSample :msg="'你好，vite2'" title="Ts Sample" @on-update="onUpdate"></TsSample>
</template>

<style>
#app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 60px;
}
</style>
